/**
 * Created by no1 on 2015/6/30.
 */
'use strict';

/**
 * Module waresLib.
 */

let mongoose = require('mongoose');
//let waresLib = require('../schema/waresLib');

var Schema = mongoose.Schema;
var ObjectId = mongoose.Schema.ObjectId;

var counter = new mongoose.Schema({
    //表名字ID
    id: {
        type: String
    },
    //数量
    seq: {
        type: Number,
        default: 0
    }
});

counter.index({
    id: 1
});

module.exports = mongoose.model('counter', counter);